﻿using EmitMapper;

namespace JinRi.Services
{
    public static class Mapper
    {
        public static TTo Map<TFrom, TTo>(TFrom model)
        {
            var map = ObjectMapperManager.DefaultInstance.GetMapper<TFrom, TTo>();
            return map.Map(model);
        }
    }
}